package com.zbkj.crmeb.chant.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.zbkj.crmeb.chant.dto.ChannelDiscountDTO;
import com.zbkj.crmeb.chant.model.ChannelDiscount;
import com.zbkj.crmeb.chant.request.ChannelDiscountRequest;

/**
 * 满减送
 * @author daigb
 * @date:  2023-01-06 16:25
 */
public interface ChannelDiscountService extends IService<ChannelDiscount> {
    
    /**
     * 获取商户配置项
     * @Description:  
     * @author daigb 
     * @param @param merId
     * @param @return
     * @return List<ChannelDiscountDTO>
     * @throws
     */
    List<ChannelDiscountDTO> listEntity(Integer merId, ChannelDiscountRequest channelDiscountRequest);
    
    /**
     * 分页查询
     * @Description:  
     * @author daigb 
     * @param @param request
     * @param @return
     * @return PageInfo<StoreBrandResponse>
     * @throws
     */
    PageInfo<ChannelDiscountDTO> pageEntity(Integer merId, ChannelDiscountRequest channelDiscountRequest);
    
    /**
     * 保存或修改
     * @Description:  
     * @author daigb 
     * @param @param merId
     * @param @param homeStyleDTOs
     * @param @return
     * @return Boolean
     * @throws
     */
    Boolean saveEntity(Integer merId, ChannelDiscountDTO homeStyleDTO);
    
    /**
     * 通过id删除
     * @Description:  
     * @author daigb 
     * @param @param merId
     * @param @param homeStyleDTOs
     * @param @return
     * @return Boolean
     * @throws
     */
    Boolean delEntity(Integer merId, Integer id);
    
    /**
     * 通过id查询
     * @Description:  
     * @author daigb 
     * @param @param merId
     * @param @param homeStyleDTOs
     * @param @return
     * @return Boolean
     * @throws
     */
    ChannelDiscountDTO getEntity(Integer merId, Integer id);
    
    /**
     * 判断商品是否在活动中
     * @Description:  
     * @author daigb 
     * @param @param merId
     * @param @param homeStyleDTOs
     * @param @return
     * @return Boolean
     * @throws
     */
    ChannelDiscountDTO checkGoods2ChannelDiscount(Integer merId, Integer id, List<ChannelDiscountDTO> channelDiscountDTOs);
    
}
